namespace Upeu.Matricula.Data.UpeuMatriculaDataContextMigrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Initial : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.cuenta",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        MontoMensual = c.String(nullable: false),
                        PagoMatricula = c.String(),
                        TipoPago = c.String(nullable: false),
                        Moneda = c.String(nullable: false),
                        FechaPago = c.DateTime(),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.curso",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        Nombrec = c.String(),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.nota",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        NombreAl = c.String(),
                        Asignatura = c.String(),
                        CursoNot = c.String(nullable: false),
                        Promedio = c.String(nullable: false),
                        FechaI = c.DateTime(),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.profesor",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        Dni = c.String(),
                        Codigo = c.String(),
                        Nombre = c.String(nullable: false),
                        Direccion = c.String(),
                        Especialidad = c.String(),
                        FechaNac = c.DateTime(),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.student",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        CodigoM = c.String(nullable: false),
                        Nombre = c.String(nullable: false),
                        Apellidos = c.String(),
                        DNI = c.String(nullable: false),
                        Direccion = c.String(),
                        FechaNac = c.DateTime(),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.student");
            DropTable("dbo.profesor");
            DropTable("dbo.nota");
            DropTable("dbo.curso");
            DropTable("dbo.cuenta");
        }
    }
}
